<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta charset="utf-8">
        <meta http-equiv="x-dns-prefetch-control" content="on">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta content="telephone=no" name="format-detection">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
        <title>开心买买买-每天千款优惠券秒杀，一折限时疯抢！</title>
        <meta name="Keywords" content="朋友圈的券优惠券折扣,9块9包邮,限时特卖,优品折扣,朋友圈的券">
        <meta name="Description" content="朋友圈的券-优惠券折扣直播第一站！每天更新千款，纯人工筛选验货，限时限量特卖，全场1折包邮！">
        <link href="__PUBLIC__/dtkStyle/images/swiper.min.css" rel="stylesheet">
        <link href="__PUBLIC__/dtkStyle/images/wap_common.css" rel="stylesheet">

		<link href="__PUBLIC__/dtkStyle/images/wapshow.css" rel="stylesheet">
        <link href="__PUBLIC__/dtkStyle/images/wapindex.css" rel="stylesheet">
		
        <script type="text/javascript" src="__PUBLIC__/dtkStyle/images/jquery-1.12.4.min.js"></script>


    </head>
    <body data-appid="7741" data-in="1">
    <div class="main-title clearfix theme-bg-color-1">
            <a href="#" class="main-logo fl">
                <!--优先显示图片，图片没有在显示名字-->
                <{$qun}>实惠买
				</a>
    <div class="search fl" style="width: 934px;">
                <form action="#" method="get">
                    <button class="search_submit background"></button>
                    <input type="text" placeholder="好宝贝 等你搜" name="keywords" class="search_area" autocomplete="off" style="width: 902px;">
                </form>
            </div>

            
            <a id="mui-action-menu" class="mui-action-menu mui-pull-left main-icon fr" href="javascript:void(0)">
                <span></span>        </a>      </div>
        <!-- 主界面具体展示内容 -->
        <div class="index-wrapper" data-ggwurl="/indexdacc8w.php?r=index/recomd&amp;type=2">
    <div class="swiper-container swiper-container-horizontal" id="swiper-container" style="width: 100%; height: 15px;">  
    </div>


    <div class="icon-link-wrapper">
        <ul class="icon-url-list clearfix">
            <li class="icon-xblj">
                <a href="">
                    <i></i>
                    <span>咚咚抢</span>
                </a>
            </li>
            <li class="icon-99by">
                <a href="">
                    <i></i>
                    <span>9.9包邮</span>
                </a>
            </li>
            <li class="icon-rqb">
                <a href="">
                    <i></i>
                    <span>超级人气榜</span>
                </a>
            </li>
            <li class="icon-jpsf">
                <a href="">
                    <i></i>
                    <span>小编力荐</span>
                </a>
            </li>
        </ul>
    </div>

	<div class="yhkb-wrap" data-speed="3000">
	 <span class="yhkb_icon"></span>
		 <div class="yhkb-list">
			 <ul>
			  <li><a data-kbid="20170828001" href="">
			  <span>通知</span>
			  一大波优惠正在来袭...</a>
			   </li>
			  </ul>
		</div> 
	</div>
</div>


<!--div class="shoufa-wrapper">
    <div class="title-wrapper">
        <div class="shoufa-tit  theme-border-left-color-1">
            <span class="shoufa-img"></span>
            <span class="shoufa-txt">
                <b><i class="theme-color-1">13:00</i>正在抢购</b>            </span>
            <a href="">查看更多&gt;</a>        </div>
    </div>

    <div class="shoufa-list">
        <ul style="width: 1107px;">
				<li>
		<a data-gid="3491201" href="http://www.cc8w.com/indexdacc8w.php?r=p/d&amp;id=3491201&amp;u=7741" class="img">
			<img src="__PUBLIC__/dtkStyle/images/TB2AmOZXEF7MKJjSZFLXXcMBVXa_!!436776929.jpg_240x240.jpg" alt="">                                                                                                                </a>
		<a data-gid="3491201" href="http://www.cc8w.com/indexdacc8w.php?r=p/d&amp;id=3491201&amp;u=7741" class="title">
			<div class="text">彩色水笔套装手帐笔糖果色</div>
		</a>
		<div class="price-wrapper">
			<span class="price">￥<b>15</b></span>
			<span class="text">券后</span>                        </div>
	</li>
				<li>
		<a data-gid="3500562" href="http://www.cc8w.com/indexdacc8w.php?r=p/d&amp;id=3500562&amp;u=7741" class="img">
			<img src="__PUBLIC__/dtkStyle/images/TB24PuhsrFlpuFjy0FgXXbRBVXa_!!52758576.jpg_240x240.jpg" alt="">                                      </a>
		<a data-gid="3500562" href="http://www.cc8w.com/indexdacc8w.php?r=p/d&amp;id=3500562&amp;u=7741" class="title">
			<div class="text">舒比拓进口美白按压式牙膏</div>
		</a>
		<div class="price-wrapper">
			<span class="price">￥<b>24.9</b></span>
			<span class="text">券后</span>                        </div>
	</li>

      </ul>
    </div>
</div-->

<div class="you-wrapper clearfix" id="more-goods">
    <div class="title-wrapper fl theme-border-left-color-1"></div>
    <div class="text fl theme-color-1  theme-bg-color-9">
        <span class="mui-badge mui-badge-blue main-badge">55208</span>
    </div>
</div>
<div class="goods-list" data-page="2">


<volist name="list" id="list" key="k" >
	<div class="detail-wrapper img">

				
		<div class="img">
			<img  id = "img<{$list.goodsid}>" src="__CONTROLLER__/getImg/img/<{$list.goodsid}>">
		</div>
		<div class="title-wrapper clearfix">
		<span class="tmall"></span>
			 <{$list.title}>											
	   </div>

				
		<div class="recommend-wrapper">
			<div class="text theme-color-4">
				<span>小编推荐：</span><{$list.introduce}></div>
		</div>
				
	
				<div class="goods-jq clearfix">
					<div class="goods-price fl"><b><i>￥</i><{$list.price}></b>券后价</div>
					<div class="goods-quan shoufa-quan fl"><span>券</span><b><i>￥</i><{$list.quan_price}></b></div>
					<div class="goods-num fr"><i></i><b>1174</b> 人已买</div>
				</div>
	
				<div class="goods-tag">
					<span>天猫</span>					
					<span>包邮</span>
				</div>
	</div>
	
	
<div class="tuwen-tkl">
    <!-- $this->isIOS==2 表示微信端-->
        <div class="pic-detail">
        <div class="pic-detail-btn" data-goodsid="">
            <span class="pic-detail-btn-span">
			<input type="text" id="copy-<{$list.goodsid}>" readonly="ture" value="点击下面复制按钮购买..^_^!!" size="50"  /></span>
        </div>
    </div>
</div>	
		
	
    <div id="kl<{$list.goodsid}>" style=" display:none;" onClick="get_kl(<{$qun}>,<{$list.goodsid}>);">获取淘口令</div>
	<div class="img" style="padding-right: 0;">
		 
		 <if condition="$list.fanskongling eq ''"> 
		 <a href="javascript:void(0);" data-clipboard-action="copy" class="btn" data-clipboard-target="#copy-<{$list.goodsid}>"  onClick="apply_jihua(<{$list.goodsid}>);">		 
			 <button class="quanbtn lklBtn">复制购买</button>
			 </a>  
		 
		  <else />
		 	<a href="javascript:void(0);" data-clipboard-action="copy" class="btn" data-clipboard-target="#copy-<{$list.goodsid}>" onClick="apply_jihua(<{$list.goodsid}>);">
			<button class="quanbtn lklBtn">复制购买</button>
		 </a>  
		 
		 </if>			  
	</div>
	
	<hr style="margin:5px;" />       
</volist>

    </div>

    <div class="pullup-goods">
        <div class="page"><{$page}></div>
    </div>



        <nav id="show-top-menu">
            <div class="mask" id="menu-mask"></div>
            <div class="menu-content">
                <ul class="main-cat">
                     <li class="cat-item mm-nolistview">
					<a rel="external" data-catid="1" href="?cid=1">女装</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="9" href="?cid=9">男装</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="10" href="?cid=10">内衣</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="2" href="?cid=2">母婴</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="3" href="?cid=3">化妆品</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="4" href="?cid=4">居家</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="5" href="?cid=5">鞋包配饰</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="6" href="?cid=6">美食</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="7" href="?cid=7">文体车品</a></li>
					<li class="cat-item ">
					<a rel="external" data-catid="8" href="?cid=8">数码家电</a></li>
              </ul>
                <span class="up-menu theme-color-1 theme-border-color-1">收起分类</span>            </div>
        </nav>
        <div class="toTop" style="display: block;"></div>
        <div style="display: none;">
         </div>
<script src="__PUBLIC__/dtkStyle/images/cms_common.js"></script>
<link rel="stylesheet" href="__PUBLIC__/js/layer/skin/default/layer.css" id="layui_layer_skinlayercss">
<script type="text/javascript" src="__PUBLIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/dtkStyle/images/clipboard.min.js"></script>

<script>
if(top.location!==self.location){
	top.location.href=self.location.href; 
} 


    var clipboard = new Clipboard('.btn');

        clipboard.on('success', function(e) {
            layer.msg('复制了', {icon: 1});
			console.log(e);
        });

        clipboard.on('error', function(e) {
            layer.msg('出错了', {icon: 5});

			console.log(e);
        });
		
//禁止呼出软键盘		
$(".copyarea").focus(function(){
     document.activeElement.blur();
});		
		

</script>

<iframe id="ifCommission" src="" height="0" width="0" frameborder="0"></iframe>       
<script>
function get_kl(qunid,goodsid)
{
	 var timestamp =Date.parse(new Date());	
 $.ajax(
    {
        type: 'post',
        url: '/index.php/Home/Ajax/getKouling',
        cache:false,
        dataType: 'json',
        data: {'qunid':qunid,"goodsid": goodsid,"clicktime":timestamp},
        async: false,
        beforeSend:function()
        {//触发ajax请求开始时执行
            //$("p").append("--马上提交--");
        },                
        success: function (msg, textStatus) 
        {//有数据返回时
            //alert(msg.result);
			if(msg.result==1)
            {
				$("#copy-"+msg.info).val(" 已经复制,打开手机淘宝APP即可购买"+msg.msgs);
				//二维码请求1.0版本
				//$("#img"+msg.info).attr("src","/index.php/Home/Product/getImg?img="+msg.info+"&kl="+msg.msgs);
				//二维码请求1.1版本
				//$("#img"+msg.info).attr("src","/index.php/Home/Product/getImgAndQr?img="+msg.info+"&qunid="+qunid+"&goodsid="+goodsid);
            }
            else
            {
               $("#kouling"+msg.info).html("获取失败");              
            }
        },
        error:function (textStatus) 
        {//网络繁忙 错误
           //$("p").append("--网络繁忙--错");                  
        },
        complete: function(msg, textStatus)
        { //ajax请求完成时执行                 
            if(msg.result==1)
            {
              // $("p").append("--请求完成时执行--");   
            }
        }                
    });  
}
function apply_jihua(goodsid)
{
	 $('#kl'+goodsid).click(); 
	 $.ajax(
		{
			type: 'post',
			url: '/index.php/Home/Ajax/jihuaCommission',
			cache:false,
			dataType: 'json',
			data: {"goodsid": goodsid},
			async: false,
			beforeSend:function()
			{//触发ajax请求开始时执行
			},                
			success: function (msg, textStatus) 
			{//有数据返回时
			//alert(msg.info);
				if(msg.result==1)
				{
					$("#ifCommission").attr("src","http://www.cc8w.com/indexdacc8w.php?r=p/d&id=" + msg.info);
				}
				else
				{
				   //$("#kouling"+msg.info).html("获取失败");              
				}
			},
			error:function (textStatus) 
			{//网络繁忙 错误             
			},
			complete: function(msg, textStatus)
			{ //ajax请求完成时执行                 
				if(msg.result==1)
				{
				}
			}                
		}); 
}
</script>
<style>.cms_ggw img {width: 100%;}.ggw_fm_cover {position: fixed;width: 100%;height:100%;top:0;left: 0;background: #000;opacity: .7;z-index: 9999990;}.ggw_fm_main {position: fixed;width: 60%;top:50%;height: 0;margin-top: -40%;left: 20%;z-index: 9999991;}.ggw_fm_main a {display: block;}.ggw_fm_main a img {vertical-align: top;}.ggw_fm_main .ggw_fm_close {position: absolute;top:0;right:0;width:30px;height:30px;}.ggw_fr {position: fixed;width: 80px;height:80px;top:50%;margin-top: -35px;right:0;z-index:9999;overflow: hidden;}.ggw_fr_main {display: block;overflow: hidden;}
.page a{
	margin:2px;
	padding:10px;
	border:1px solid #E53563;

}
</style>

</body></html>